#ifndef _STIIO_H
#define _STIIO_H

#define UART 0x1
#define LCD 0x2
#define KEY 0x4

#define ECHO 0x80000000

/*
 *  We can use english/number input method like cell phone by setting this 1.
 *      --tankery.chen@gmail.com
 */
#define USE_INPUT_METHOD    1

#include "stdio.h"
#include "driver_config.h"
#include "type.h"
#include "gpio.h"
#include "i2c.h"
#include "uart.h"

enum InputMethod {
    INPUT_METHOD_NUMBER = 0,
    INPUT_METHOD_UPPERCASE,
    INPUT_METHOD_LOWERCASE,
    INPUT_METHOD_COUNT
};

extern uint32_t MyStdin;
extern uint32_t MyStdout;

extern void UtilioInit(void);
extern void UtilioSetMethod(enum InputMethod method);

#endif
